<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Validate (Apache Commons Lang 3.3.2 API)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="Validate (Apache Commons Lang 3.3.2 API)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Validate.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/commons/lang3/SystemUtils.html" title="class in org.apache.commons.lang3"><span class="strong">Prev Class</span></a></li>
<li>Next Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/commons/lang3/Validate.html" target="_top">Frames</a></li>
<li><a href="Validate.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.commons.lang3</div>
<h2 title="Class Validate" class="title">Class Validate</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.commons.lang3.Validate</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="strong">Validate</span>
extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
<div class="block"><p>This class assists in validating arguments. The validation methods are
 based along the following principles:
 <ul>
   <li>An invalid <code>null</code> argument causes a <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang"><code>NullPointerException</code></a>.</li>
   <li>A non-<code>null</code> argument causes an <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a>.</li>
   <li>An invalid index into an array/collection/map/string causes an <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang"><code>IndexOutOfBoundsException</code></a>.</li>
 </ul>

 <p>All exceptions messages are
 <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Formatter.html#syntax">format strings</a>
 as defined by the Java platform. For example:</p>

 <pre>
 Validate.isTrue(i &gt; 0, "The value must be greater than zero: %d", i);
 Validate.notNull(surname, "The surname must not be %s", null);
 </pre>

 <p>#ThreadSafe#</p></div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>2.0</dd>
<dt><span class="strong">Version:</span></dt>
  <dd>$Id: Validate.java 1583482 2014-03-31 22:54:57Z niallp $</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#format(java.lang.String, java.lang.Object...)" title="class or interface in java.lang"><code>String.format(String, Object...)</code></a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#Validate()">Validate</a></strong>()</code>
<div class="block">Constructor.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#exclusiveBetween(double, double, double)">exclusiveBetween</a></strong>(double&nbsp;start,
                double&nbsp;end,
                double&nbsp;value)</code>
<div class="block">Validate that the specified primitive value falls between the two
 exclusive values specified; otherwise, throws an exception.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#exclusiveBetween(double, double, double, java.lang.String)">exclusiveBetween</a></strong>(double&nbsp;start,
                double&nbsp;end,
                double&nbsp;value,
                <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message)</code>
<div class="block">Validate that the specified primitive value falls between the two
 exclusive values specified; otherwise, throws an exception with the
 specified message.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#exclusiveBetween(long, long, long)">exclusiveBetween</a></strong>(long&nbsp;start,
                long&nbsp;end,
                long&nbsp;value)</code>
<div class="block">Validate that the specified primitive value falls between the two
 exclusive values specified; otherwise, throws an exception.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#exclusiveBetween(long, long, long, java.lang.String)">exclusiveBetween</a></strong>(long&nbsp;start,
                long&nbsp;end,
                long&nbsp;value,
                <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message)</code>
<div class="block">Validate that the specified primitive value falls between the two
 exclusive values specified; otherwise, throws an exception with the
 specified message.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#exclusiveBetween(T, T, java.lang.Comparable)">exclusiveBetween</a></strong>(T&nbsp;start,
                T&nbsp;end,
                <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;&nbsp;value)</code>
<div class="block">Validate that the specified argument object fall between the two
 exclusive values specified; otherwise, throws an exception.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#exclusiveBetween(T, T, java.lang.Comparable, java.lang.String, java.lang.Object...)">exclusiveBetween</a></strong>(T&nbsp;start,
                T&nbsp;end,
                <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;&nbsp;value,
                <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
                <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</code>
<div class="block">Validate that the specified argument object fall between the two
 exclusive values specified; otherwise, throws an exception with the
 specified message.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#inclusiveBetween(double, double, double)">inclusiveBetween</a></strong>(double&nbsp;start,
                double&nbsp;end,
                double&nbsp;value)</code>
<div class="block">Validate that the specified primitive value falls between the two
 inclusive values specified; otherwise, throws an exception.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#inclusiveBetween(double, double, double, java.lang.String)">inclusiveBetween</a></strong>(double&nbsp;start,
                double&nbsp;end,
                double&nbsp;value,
                <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message)</code>
<div class="block">Validate that the specified primitive value falls between the two
 inclusive values specified; otherwise, throws an exception with the
 specified message.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#inclusiveBetween(long, long, long)">inclusiveBetween</a></strong>(long&nbsp;start,
                long&nbsp;end,
                long&nbsp;value)</code>
<div class="block">Validate that the specified primitive value falls between the two
 inclusive values specified; otherwise, throws an exception.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#inclusiveBetween(long, long, long, java.lang.String)">inclusiveBetween</a></strong>(long&nbsp;start,
                long&nbsp;end,
                long&nbsp;value,
                <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message)</code>
<div class="block">Validate that the specified primitive value falls between the two
 inclusive values specified; otherwise, throws an exception with the
 specified message.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#inclusiveBetween(T, T, java.lang.Comparable)">inclusiveBetween</a></strong>(T&nbsp;start,
                T&nbsp;end,
                <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;&nbsp;value)</code>
<div class="block">Validate that the specified argument object fall between the two
 inclusive values specified; otherwise, throws an exception.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#inclusiveBetween(T, T, java.lang.Comparable, java.lang.String, java.lang.Object...)">inclusiveBetween</a></strong>(T&nbsp;start,
                T&nbsp;end,
                <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;&nbsp;value,
                <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
                <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</code>
<div class="block">Validate that the specified argument object fall between the two
 inclusive values specified; otherwise, throws an exception with the
 specified message.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#isAssignableFrom(java.lang.Class, java.lang.Class)">isAssignableFrom</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;superType,
                <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;type)</code>
<div class="block">Validates that the argument can be converted to the specified class, if not, throws an exception.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#isAssignableFrom(java.lang.Class, java.lang.Class, java.lang.String, java.lang.Object...)">isAssignableFrom</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;superType,
                <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;type,
                <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
                <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</code>
<div class="block">Validates that the argument can be converted to the specified class, if not throws an exception.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#isInstanceOf(java.lang.Class, java.lang.Object)">isInstanceOf</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;type,
            <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;obj)</code>
<div class="block">Validates that the argument is an instance of the specified class, if not throws an exception.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#isInstanceOf(java.lang.Class, java.lang.Object, java.lang.String, java.lang.Object...)">isInstanceOf</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;type,
            <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;obj,
            <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
            <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</code>
<div class="block">Validate that the argument is an instance of the specified class; otherwise
 throwing an exception with the specified message.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#isTrue(boolean)">isTrue</a></strong>(boolean&nbsp;expression)</code>
<div class="block">Validate that the argument condition is <code>true</code>; otherwise
 throwing an exception.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#isTrue(boolean, java.lang.String, double)">isTrue</a></strong>(boolean&nbsp;expression,
      <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
      double&nbsp;value)</code>
<div class="block">Validate that the argument condition is <code>true</code>; otherwise
 throwing an exception with the specified message.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#isTrue(boolean, java.lang.String, long)">isTrue</a></strong>(boolean&nbsp;expression,
      <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
      long&nbsp;value)</code>
<div class="block">Validate that the argument condition is <code>true</code>; otherwise
 throwing an exception with the specified message.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#isTrue(boolean, java.lang.String, java.lang.Object...)">isTrue</a></strong>(boolean&nbsp;expression,
      <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
      <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</code>
<div class="block">Validate that the argument condition is <code>true</code>; otherwise
 throwing an exception with the specified message.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#matchesPattern(java.lang.CharSequence, java.lang.String)">matchesPattern</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&nbsp;input,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pattern)</code>
<div class="block">Validate that the specified argument character sequence matches the specified regular
 expression pattern; otherwise throwing an exception.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#matchesPattern(java.lang.CharSequence, java.lang.String, java.lang.String, java.lang.Object...)">matchesPattern</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&nbsp;input,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pattern,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</code>
<div class="block">Validate that the specified argument character sequence matches the specified regular
 expression pattern; otherwise throwing an exception with the specified message.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static &lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;?&gt;&gt;&nbsp;<br>T</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#noNullElements(T)">noNullElements</a></strong>(T&nbsp;iterable)</code>
<div class="block">Validate that the specified argument iterable is neither
 <code>null</code> nor contains any elements that are <code>null</code>;
 otherwise throwing an exception.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;T[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#noNullElements(T[])">noNullElements</a></strong>(T[]&nbsp;array)</code>
<div class="block">Validate that the specified argument array is neither
 <code>null</code> nor contains any elements that are <code>null</code>;
 otherwise throwing an exception.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;T[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#noNullElements(T[], java.lang.String, java.lang.Object...)">noNullElements</a></strong>(T[]&nbsp;array,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</code>
<div class="block">Validate that the specified argument array is neither
 <code>null</code> nor contains any elements that are <code>null</code>;
 otherwise throwing an exception with the specified message.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static &lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;?&gt;&gt;&nbsp;<br>T</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#noNullElements(T, java.lang.String, java.lang.Object...)">noNullElements</a></strong>(T&nbsp;iterable,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</code>
<div class="block">Validate that the specified argument iterable is neither
 <code>null</code> nor contains any elements that are <code>null</code>;
 otherwise throwing an exception with the specified message.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static &lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&gt;&nbsp;<br>T</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#notBlank(T)">notBlank</a></strong>(T&nbsp;chars)</code>
<div class="block">Validate that the specified argument character sequence is
 neither <code>null</code>, a length of zero (no characters), empty
 nor whitespace; otherwise throwing an exception.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static &lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&gt;&nbsp;<br>T</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#notBlank(T, java.lang.String, java.lang.Object...)">notBlank</a></strong>(T&nbsp;chars,
        <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
        <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</code>
<div class="block">Validate that the specified argument character sequence is
 neither <code>null</code>, a length of zero (no characters), empty
 nor whitespace; otherwise throwing an exception with the specified
 message.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static &lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&gt;&nbsp;<br>T</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#notEmpty(T)">notEmpty</a></strong>(T&nbsp;chars)</code>
<div class="block">Validate that the specified argument character sequence is
 neither <code>null</code> nor a length of zero (no characters);
 otherwise throwing an exception with the specified message.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static &lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;?&gt;&gt;&nbsp;<br>T</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#notEmpty(T)">notEmpty</a></strong>(T&nbsp;collection)</code>
<div class="block">Validate that the specified argument collection is neither <code>null</code>
 nor a size of zero (no elements); otherwise throwing an exception.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static &lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;?,?&gt;&gt;&nbsp;<br>T</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#notEmpty(T)">notEmpty</a></strong>(T&nbsp;map)</code>
<div class="block">Validate that the specified argument map is neither <code>null</code>
 nor a size of zero (no elements); otherwise throwing an exception.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;T[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#notEmpty(T[])">notEmpty</a></strong>(T[]&nbsp;array)</code>
<div class="block">Validate that the specified argument array is neither <code>null</code>
 nor a length of zero (no elements); otherwise throwing an exception.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;T[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#notEmpty(T[], java.lang.String, java.lang.Object...)">notEmpty</a></strong>(T[]&nbsp;array,
        <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
        <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</code>
<div class="block">Validate that the specified argument array is neither <code>null</code>
 nor a length of zero (no elements); otherwise throwing an exception
 with the specified message.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static &lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&gt;&nbsp;<br>T</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#notEmpty(T, java.lang.String, java.lang.Object...)">notEmpty</a></strong>(T&nbsp;chars,
        <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
        <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</code>
<div class="block">Validate that the specified argument character sequence is
 neither <code>null</code> nor a length of zero (no characters);
 otherwise throwing an exception with the specified message.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static &lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;?&gt;&gt;&nbsp;<br>T</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#notEmpty(T, java.lang.String, java.lang.Object...)">notEmpty</a></strong>(T&nbsp;collection,
        <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
        <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</code>
<div class="block">Validate that the specified argument collection is neither <code>null</code>
 nor a size of zero (no elements); otherwise throwing an exception
 with the specified message.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static &lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;?,?&gt;&gt;&nbsp;<br>T</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#notEmpty(T, java.lang.String, java.lang.Object...)">notEmpty</a></strong>(T&nbsp;map,
        <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
        <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</code>
<div class="block">Validate that the specified argument map is neither <code>null</code>
 nor a size of zero (no elements); otherwise throwing an exception
 with the specified message.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;T</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#notNull(T)">notNull</a></strong>(T&nbsp;object)</code>
<div class="block">Validate that the specified argument is not <code>null</code>;
 otherwise throwing an exception.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;T</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#notNull(T, java.lang.String, java.lang.Object...)">notNull</a></strong>(T&nbsp;object,
       <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
       <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</code>
<div class="block">Validate that the specified argument is not <code>null</code>;
 otherwise throwing an exception with the specified message.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;T[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#validIndex(T[], int)">validIndex</a></strong>(T[]&nbsp;array,
          int&nbsp;index)</code>
<div class="block">Validates that the index is within the bounds of the argument
 array; otherwise throwing an exception.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;T[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#validIndex(T[], int, java.lang.String, java.lang.Object...)">validIndex</a></strong>(T[]&nbsp;array,
          int&nbsp;index,
          <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
          <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</code>
<div class="block">Validates that the index is within the bounds of the argument
 array; otherwise throwing an exception with the specified message.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static &lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&gt;&nbsp;<br>T</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#validIndex(T, int)">validIndex</a></strong>(T&nbsp;chars,
          int&nbsp;index)</code>
<div class="block">Validates that the index is within the bounds of the argument
 character sequence; otherwise throwing an exception.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static &lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;?&gt;&gt;&nbsp;<br>T</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#validIndex(T, int)">validIndex</a></strong>(T&nbsp;collection,
          int&nbsp;index)</code>
<div class="block">Validates that the index is within the bounds of the argument
 collection; otherwise throwing an exception.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static &lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&gt;&nbsp;<br>T</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#validIndex(T, int, java.lang.String, java.lang.Object...)">validIndex</a></strong>(T&nbsp;chars,
          int&nbsp;index,
          <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
          <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</code>
<div class="block">Validates that the index is within the bounds of the argument
 character sequence; otherwise throwing an exception with the
 specified message.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static &lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;?&gt;&gt;&nbsp;<br>T</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#validIndex(T, int, java.lang.String, java.lang.Object...)">validIndex</a></strong>(T&nbsp;collection,
          int&nbsp;index,
          <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
          <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</code>
<div class="block">Validates that the index is within the bounds of the argument
 collection; otherwise throwing an exception with the specified message.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#validState(boolean)">validState</a></strong>(boolean&nbsp;expression)</code>
<div class="block">Validate that the stateful condition is <code>true</code>; otherwise
 throwing an exception.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/commons/lang3/Validate.html#validState(boolean, java.lang.String, java.lang.Object...)">validState</a></strong>(boolean&nbsp;expression,
          <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
          <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</code>
<div class="block">Validate that the stateful condition is <code>true</code>; otherwise
 throwing an exception with the specified message.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="Validate()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Validate</h4>
<pre>public&nbsp;Validate()</pre>
<div class="block">Constructor. This class should not normally be instantiated.</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="isTrue(boolean, java.lang.String, long)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isTrue</h4>
<pre>public static&nbsp;void&nbsp;isTrue(boolean&nbsp;expression,
          <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
          long&nbsp;value)</pre>
<div class="block"><p>Validate that the argument condition is <code>true</code>; otherwise
 throwing an exception with the specified message. This method is useful when
 validating according to an arbitrary boolean expression, such as validating a
 primitive number or using your own custom validation expression.</p>

 <pre>Validate.isTrue(i &gt; 0.0, "The value must be greater than zero: &#37;d", i);</pre>

 <p>For performance reasons, the long value is passed as a separate parameter and
 appended to the exception message only in the case of an error.</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>expression</code> - the boolean expression to check</dd><dd><code>message</code> - the <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#format(java.lang.String, java.lang.Object...)" title="class or interface in java.lang"><code>String.format(String, Object...)</code></a> exception message if invalid, not null</dd><dd><code>value</code> - the value to append to the message when invalid</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if expression is <code>false</code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#isTrue(boolean)"><code>isTrue(boolean)</code></a>, 
<a href="../../../../org/apache/commons/lang3/Validate.html#isTrue(boolean, java.lang.String, double)"><code>isTrue(boolean, String, double)</code></a>, 
<a href="../../../../org/apache/commons/lang3/Validate.html#isTrue(boolean, java.lang.String, java.lang.Object...)"><code>isTrue(boolean, String, Object...)</code></a></dd></dl>
</li>
</ul>
<a name="isTrue(boolean, java.lang.String, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isTrue</h4>
<pre>public static&nbsp;void&nbsp;isTrue(boolean&nbsp;expression,
          <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
          double&nbsp;value)</pre>
<div class="block"><p>Validate that the argument condition is <code>true</code>; otherwise
 throwing an exception with the specified message. This method is useful when
 validating according to an arbitrary boolean expression, such as validating a
 primitive number or using your own custom validation expression.</p>

 <pre>Validate.isTrue(d &gt; 0.0, "The value must be greater than zero: &#37;s", d);</pre>

 <p>For performance reasons, the double value is passed as a separate parameter and
 appended to the exception message only in the case of an error.</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>expression</code> - the boolean expression to check</dd><dd><code>message</code> - the <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#format(java.lang.String, java.lang.Object...)" title="class or interface in java.lang"><code>String.format(String, Object...)</code></a> exception message if invalid, not null</dd><dd><code>value</code> - the value to append to the message when invalid</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if expression is <code>false</code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#isTrue(boolean)"><code>isTrue(boolean)</code></a>, 
<a href="../../../../org/apache/commons/lang3/Validate.html#isTrue(boolean, java.lang.String, long)"><code>isTrue(boolean, String, long)</code></a>, 
<a href="../../../../org/apache/commons/lang3/Validate.html#isTrue(boolean, java.lang.String, java.lang.Object...)"><code>isTrue(boolean, String, Object...)</code></a></dd></dl>
</li>
</ul>
<a name="isTrue(boolean, java.lang.String, java.lang.Object...)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isTrue</h4>
<pre>public static&nbsp;void&nbsp;isTrue(boolean&nbsp;expression,
          <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
          <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</pre>
<div class="block"><p>Validate that the argument condition is <code>true</code>; otherwise
 throwing an exception with the specified message. This method is useful when
 validating according to an arbitrary boolean expression, such as validating a
 primitive number or using your own custom validation expression.</p>

 <pre>
 Validate.isTrue(i &gt;= min &amp;&amp; i &lt;= max, "The value must be between &#37;d and &#37;d", min, max);
 Validate.isTrue(myObject.isOk(), "The object is not okay");</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>expression</code> - the boolean expression to check</dd><dd><code>message</code> - the <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#format(java.lang.String, java.lang.Object...)" title="class or interface in java.lang"><code>String.format(String, Object...)</code></a> exception message if invalid, not null</dd><dd><code>values</code> - the optional values for the formatted exception message, null array not recommended</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if expression is <code>false</code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#isTrue(boolean)"><code>isTrue(boolean)</code></a>, 
<a href="../../../../org/apache/commons/lang3/Validate.html#isTrue(boolean, java.lang.String, long)"><code>isTrue(boolean, String, long)</code></a>, 
<a href="../../../../org/apache/commons/lang3/Validate.html#isTrue(boolean, java.lang.String, double)"><code>isTrue(boolean, String, double)</code></a></dd></dl>
</li>
</ul>
<a name="isTrue(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isTrue</h4>
<pre>public static&nbsp;void&nbsp;isTrue(boolean&nbsp;expression)</pre>
<div class="block"><p>Validate that the argument condition is <code>true</code>; otherwise
 throwing an exception. This method is useful when validating according
 to an arbitrary boolean expression, such as validating a
 primitive number or using your own custom validation expression.</p>

 <pre>
 Validate.isTrue(i &gt; 0);
 Validate.isTrue(myObject.isOk());</pre>

 <p>The message of the exception is &quot;The validated expression is
 false&quot;.</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>expression</code> - the boolean expression to check</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if expression is <code>false</code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#isTrue(boolean, java.lang.String, long)"><code>isTrue(boolean, String, long)</code></a>, 
<a href="../../../../org/apache/commons/lang3/Validate.html#isTrue(boolean, java.lang.String, double)"><code>isTrue(boolean, String, double)</code></a>, 
<a href="../../../../org/apache/commons/lang3/Validate.html#isTrue(boolean, java.lang.String, java.lang.Object...)"><code>isTrue(boolean, String, Object...)</code></a></dd></dl>
</li>
</ul>
<a name="notNull(java.lang.Object)">
<!--   -->
</a><a name="notNull(T)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>notNull</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;T&nbsp;notNull(T&nbsp;object)</pre>
<div class="block"><p>Validate that the specified argument is not <code>null</code>;
 otherwise throwing an exception.

 <pre>Validate.notNull(myObject, "The object must not be null");</pre>

 <p>The message of the exception is &quot;The validated object is
 null&quot;.</p></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the object type</dd><dt><span class="strong">Parameters:</span></dt><dd><code>object</code> - the object to check</dd>
<dt><span class="strong">Returns:</span></dt><dd>the validated object (never <code>null</code> for method chaining)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the object is <code>null</code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#notNull(T, java.lang.String, java.lang.Object...)"><code>notNull(Object, String, Object...)</code></a></dd></dl>
</li>
</ul>
<a name="notNull(java.lang.Object,java.lang.String,java.lang.Object[])">
<!--   -->
</a><a name="notNull(T, java.lang.String, java.lang.Object...)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>notNull</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;T&nbsp;notNull(T&nbsp;object,
            <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
            <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</pre>
<div class="block"><p>Validate that the specified argument is not <code>null</code>;
 otherwise throwing an exception with the specified message.

 <pre>Validate.notNull(myObject, "The object must not be null");</pre></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the object type</dd><dt><span class="strong">Parameters:</span></dt><dd><code>object</code> - the object to check</dd><dd><code>message</code> - the <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#format(java.lang.String, java.lang.Object...)" title="class or interface in java.lang"><code>String.format(String, Object...)</code></a> exception message if invalid, not null</dd><dd><code>values</code> - the optional values for the formatted exception message</dd>
<dt><span class="strong">Returns:</span></dt><dd>the validated object (never <code>null</code> for method chaining)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the object is <code>null</code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#notNull(T)"><code>notNull(Object)</code></a></dd></dl>
</li>
</ul>
<a name="notEmpty(java.lang.Object[],java.lang.String,java.lang.Object[])">
<!--   -->
</a><a name="notEmpty(T[], java.lang.String, java.lang.Object...)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>notEmpty</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;T[]&nbsp;notEmpty(T[]&nbsp;array,
               <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
               <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</pre>
<div class="block"><p>Validate that the specified argument array is neither <code>null</code>
 nor a length of zero (no elements); otherwise throwing an exception
 with the specified message.

 <pre>Validate.notEmpty(myArray, "The array must not be empty");</pre></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the array type</dd><dt><span class="strong">Parameters:</span></dt><dd><code>array</code> - the array to check, validated not null by this method</dd><dd><code>message</code> - the <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#format(java.lang.String, java.lang.Object...)" title="class or interface in java.lang"><code>String.format(String, Object...)</code></a> exception message if invalid, not null</dd><dd><code>values</code> - the optional values for the formatted exception message, null array not recommended</dd>
<dt><span class="strong">Returns:</span></dt><dd>the validated array (never <code>null</code> method for chaining)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the array is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the array is empty</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#notEmpty(T[])"><code>notEmpty(Object[])</code></a></dd></dl>
</li>
</ul>
<a name="notEmpty(java.lang.Object[])">
<!--   -->
</a><a name="notEmpty(T[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>notEmpty</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;T[]&nbsp;notEmpty(T[]&nbsp;array)</pre>
<div class="block"><p>Validate that the specified argument array is neither <code>null</code>
 nor a length of zero (no elements); otherwise throwing an exception.

 <pre>Validate.notEmpty(myArray);</pre>

 <p>The message in the exception is &quot;The validated array is
 empty&quot;.</div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the array type</dd><dt><span class="strong">Parameters:</span></dt><dd><code>array</code> - the array to check, validated not null by this method</dd>
<dt><span class="strong">Returns:</span></dt><dd>the validated array (never <code>null</code> method for chaining)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the array is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the array is empty</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#notEmpty(T[], java.lang.String, java.lang.Object...)"><code>notEmpty(Object[], String, Object...)</code></a></dd></dl>
</li>
</ul>
<a name="notEmpty(java.util.Collection,java.lang.String,java.lang.Object[])">
<!--   -->
</a><a name="notEmpty(T, java.lang.String, java.lang.Object...)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>notEmpty</h4>
<pre>public static&nbsp;&lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;?&gt;&gt;&nbsp;T&nbsp;notEmpty(T&nbsp;collection,
                                   <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
                                   <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</pre>
<div class="block"><p>Validate that the specified argument collection is neither <code>null</code>
 nor a size of zero (no elements); otherwise throwing an exception
 with the specified message.

 <pre>Validate.notEmpty(myCollection, "The collection must not be empty");</pre></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the collection type</dd><dt><span class="strong">Parameters:</span></dt><dd><code>collection</code> - the collection to check, validated not null by this method</dd><dd><code>message</code> - the <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#format(java.lang.String, java.lang.Object...)" title="class or interface in java.lang"><code>String.format(String, Object...)</code></a> exception message if invalid, not null</dd><dd><code>values</code> - the optional values for the formatted exception message, null array not recommended</dd>
<dt><span class="strong">Returns:</span></dt><dd>the validated collection (never <code>null</code> method for chaining)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the collection is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the collection is empty</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#notEmpty(T[])"><code>notEmpty(Object[])</code></a></dd></dl>
</li>
</ul>
<a name="notEmpty(java.util.Collection)">
<!--   -->
</a><a name="notEmpty(T)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>notEmpty</h4>
<pre>public static&nbsp;&lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;?&gt;&gt;&nbsp;T&nbsp;notEmpty(T&nbsp;collection)</pre>
<div class="block"><p>Validate that the specified argument collection is neither <code>null</code>
 nor a size of zero (no elements); otherwise throwing an exception.

 <pre>Validate.notEmpty(myCollection);</pre>

 <p>The message in the exception is &quot;The validated collection is
 empty&quot;.</p></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the collection type</dd><dt><span class="strong">Parameters:</span></dt><dd><code>collection</code> - the collection to check, validated not null by this method</dd>
<dt><span class="strong">Returns:</span></dt><dd>the validated collection (never <code>null</code> method for chaining)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the collection is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the collection is empty</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#notEmpty(T, java.lang.String, java.lang.Object...)"><code>notEmpty(Collection, String, Object...)</code></a></dd></dl>
</li>
</ul>
<a name="notEmpty(java.util.Map,java.lang.String,java.lang.Object[])">
<!--   -->
</a><a name="notEmpty(T, java.lang.String, java.lang.Object...)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>notEmpty</h4>
<pre>public static&nbsp;&lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;?,?&gt;&gt;&nbsp;T&nbsp;notEmpty(T&nbsp;map,
                              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
                              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</pre>
<div class="block"><p>Validate that the specified argument map is neither <code>null</code>
 nor a size of zero (no elements); otherwise throwing an exception
 with the specified message.

 <pre>Validate.notEmpty(myMap, "The map must not be empty");</pre></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the map type</dd><dt><span class="strong">Parameters:</span></dt><dd><code>map</code> - the map to check, validated not null by this method</dd><dd><code>message</code> - the <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#format(java.lang.String, java.lang.Object...)" title="class or interface in java.lang"><code>String.format(String, Object...)</code></a> exception message if invalid, not null</dd><dd><code>values</code> - the optional values for the formatted exception message, null array not recommended</dd>
<dt><span class="strong">Returns:</span></dt><dd>the validated map (never <code>null</code> method for chaining)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the map is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the map is empty</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#notEmpty(T[])"><code>notEmpty(Object[])</code></a></dd></dl>
</li>
</ul>
<a name="notEmpty(java.util.Map)">
<!--   -->
</a><a name="notEmpty(T)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>notEmpty</h4>
<pre>public static&nbsp;&lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;?,?&gt;&gt;&nbsp;T&nbsp;notEmpty(T&nbsp;map)</pre>
<div class="block"><p>Validate that the specified argument map is neither <code>null</code>
 nor a size of zero (no elements); otherwise throwing an exception.

 <pre>Validate.notEmpty(myMap);</pre>

 <p>The message in the exception is &quot;The validated map is
 empty&quot;.</p></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the map type</dd><dt><span class="strong">Parameters:</span></dt><dd><code>map</code> - the map to check, validated not null by this method</dd>
<dt><span class="strong">Returns:</span></dt><dd>the validated map (never <code>null</code> method for chaining)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the map is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the map is empty</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#notEmpty(T, java.lang.String, java.lang.Object...)"><code>notEmpty(Map, String, Object...)</code></a></dd></dl>
</li>
</ul>
<a name="notEmpty(java.lang.CharSequence,java.lang.String,java.lang.Object[])">
<!--   -->
</a><a name="notEmpty(T, java.lang.String, java.lang.Object...)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>notEmpty</h4>
<pre>public static&nbsp;&lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&gt;&nbsp;T&nbsp;notEmpty(T&nbsp;chars,
                                  <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
                                  <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</pre>
<div class="block"><p>Validate that the specified argument character sequence is
 neither <code>null</code> nor a length of zero (no characters);
 otherwise throwing an exception with the specified message.

 <pre>Validate.notEmpty(myString, "The string must not be empty");</pre></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the character sequence type</dd><dt><span class="strong">Parameters:</span></dt><dd><code>chars</code> - the character sequence to check, validated not null by this method</dd><dd><code>message</code> - the <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#format(java.lang.String, java.lang.Object...)" title="class or interface in java.lang"><code>String.format(String, Object...)</code></a> exception message if invalid, not null</dd><dd><code>values</code> - the optional values for the formatted exception message, null array not recommended</dd>
<dt><span class="strong">Returns:</span></dt><dd>the validated character sequence (never <code>null</code> method for chaining)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the character sequence is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the character sequence is empty</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#notEmpty(T)"><code>notEmpty(CharSequence)</code></a></dd></dl>
</li>
</ul>
<a name="notEmpty(java.lang.CharSequence)">
<!--   -->
</a><a name="notEmpty(T)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>notEmpty</h4>
<pre>public static&nbsp;&lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&gt;&nbsp;T&nbsp;notEmpty(T&nbsp;chars)</pre>
<div class="block"><p>Validate that the specified argument character sequence is
 neither <code>null</code> nor a length of zero (no characters);
 otherwise throwing an exception with the specified message.

 <pre>Validate.notEmpty(myString);</pre>

 <p>The message in the exception is &quot;The validated
 character sequence is empty&quot;.</p></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the character sequence type</dd><dt><span class="strong">Parameters:</span></dt><dd><code>chars</code> - the character sequence to check, validated not null by this method</dd>
<dt><span class="strong">Returns:</span></dt><dd>the validated character sequence (never <code>null</code> method for chaining)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the character sequence is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the character sequence is empty</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#notEmpty(T, java.lang.String, java.lang.Object...)"><code>notEmpty(CharSequence, String, Object...)</code></a></dd></dl>
</li>
</ul>
<a name="notBlank(java.lang.CharSequence,java.lang.String,java.lang.Object[])">
<!--   -->
</a><a name="notBlank(T, java.lang.String, java.lang.Object...)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>notBlank</h4>
<pre>public static&nbsp;&lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&gt;&nbsp;T&nbsp;notBlank(T&nbsp;chars,
                                  <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
                                  <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</pre>
<div class="block"><p>Validate that the specified argument character sequence is
 neither <code>null</code>, a length of zero (no characters), empty
 nor whitespace; otherwise throwing an exception with the specified
 message.

 <pre>Validate.notBlank(myString, "The string must not be blank");</pre></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the character sequence type</dd><dt><span class="strong">Parameters:</span></dt><dd><code>chars</code> - the character sequence to check, validated not null by this method</dd><dd><code>message</code> - the <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#format(java.lang.String, java.lang.Object...)" title="class or interface in java.lang"><code>String.format(String, Object...)</code></a> exception message if invalid, not null</dd><dd><code>values</code> - the optional values for the formatted exception message, null array not recommended</dd>
<dt><span class="strong">Returns:</span></dt><dd>the validated character sequence (never <code>null</code> method for chaining)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the character sequence is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the character sequence is blank</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#notBlank(T)"><code>notBlank(CharSequence)</code></a></dd></dl>
</li>
</ul>
<a name="notBlank(java.lang.CharSequence)">
<!--   -->
</a><a name="notBlank(T)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>notBlank</h4>
<pre>public static&nbsp;&lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&gt;&nbsp;T&nbsp;notBlank(T&nbsp;chars)</pre>
<div class="block"><p>Validate that the specified argument character sequence is
 neither <code>null</code>, a length of zero (no characters), empty
 nor whitespace; otherwise throwing an exception.

 <pre>Validate.notBlank(myString);</pre>

 <p>The message in the exception is &quot;The validated character
 sequence is blank&quot;.</p></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the character sequence type</dd><dt><span class="strong">Parameters:</span></dt><dd><code>chars</code> - the character sequence to check, validated not null by this method</dd>
<dt><span class="strong">Returns:</span></dt><dd>the validated character sequence (never <code>null</code> method for chaining)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the character sequence is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the character sequence is blank</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#notBlank(T, java.lang.String, java.lang.Object...)"><code>notBlank(CharSequence, String, Object...)</code></a></dd></dl>
</li>
</ul>
<a name="noNullElements(java.lang.Object[],java.lang.String,java.lang.Object[])">
<!--   -->
</a><a name="noNullElements(T[], java.lang.String, java.lang.Object...)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>noNullElements</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;T[]&nbsp;noNullElements(T[]&nbsp;array,
                     <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
                     <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</pre>
<div class="block"><p>Validate that the specified argument array is neither
 <code>null</code> nor contains any elements that are <code>null</code>;
 otherwise throwing an exception with the specified message.

 <pre>Validate.noNullElements(myArray, "The array contain null at position %d");</pre>

 <p>If the array is <code>null</code>, then the message in the exception
 is &quot;The validated object is null&quot;.</p>

 <p>If the array has a <code>null</code> element, then the iteration
 index of the invalid element is appended to the <code>values</code>
 argument.</p></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the array type</dd><dt><span class="strong">Parameters:</span></dt><dd><code>array</code> - the array to check, validated not null by this method</dd><dd><code>message</code> - the <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#format(java.lang.String, java.lang.Object...)" title="class or interface in java.lang"><code>String.format(String, Object...)</code></a> exception message if invalid, not null</dd><dd><code>values</code> - the optional values for the formatted exception message, null array not recommended</dd>
<dt><span class="strong">Returns:</span></dt><dd>the validated array (never <code>null</code> method for chaining)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the array is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if an element is <code>null</code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#noNullElements(T[])"><code>noNullElements(Object[])</code></a></dd></dl>
</li>
</ul>
<a name="noNullElements(java.lang.Object[])">
<!--   -->
</a><a name="noNullElements(T[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>noNullElements</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;T[]&nbsp;noNullElements(T[]&nbsp;array)</pre>
<div class="block"><p>Validate that the specified argument array is neither
 <code>null</code> nor contains any elements that are <code>null</code>;
 otherwise throwing an exception.</p>

 <pre>Validate.noNullElements(myArray);</pre>

 <p>If the array is <code>null</code>, then the message in the exception
 is &quot;The validated object is null&quot;.</p>

 <p>If the array has a <code>null</code> element, then the message in the
 exception is &quot;The validated array contains null element at index:
 &quot; followed by the index.</p></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the array type</dd><dt><span class="strong">Parameters:</span></dt><dd><code>array</code> - the array to check, validated not null by this method</dd>
<dt><span class="strong">Returns:</span></dt><dd>the validated array (never <code>null</code> method for chaining)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the array is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if an element is <code>null</code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#noNullElements(T[], java.lang.String, java.lang.Object...)"><code>noNullElements(Object[], String, Object...)</code></a></dd></dl>
</li>
</ul>
<a name="noNullElements(java.lang.Iterable,java.lang.String,java.lang.Object[])">
<!--   -->
</a><a name="noNullElements(T, java.lang.String, java.lang.Object...)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>noNullElements</h4>
<pre>public static&nbsp;&lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;?&gt;&gt;&nbsp;T&nbsp;noNullElements(T&nbsp;iterable,
                                       <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
                                       <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</pre>
<div class="block"><p>Validate that the specified argument iterable is neither
 <code>null</code> nor contains any elements that are <code>null</code>;
 otherwise throwing an exception with the specified message.

 <pre>Validate.noNullElements(myCollection, "The collection contains null at position %d");</pre>

 <p>If the iterable is <code>null</code>, then the message in the exception
 is &quot;The validated object is null&quot;.</p>

 <p>If the iterable has a <code>null</code> element, then the iteration
 index of the invalid element is appended to the <code>values</code>
 argument.</p></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the iterable type</dd><dt><span class="strong">Parameters:</span></dt><dd><code>iterable</code> - the iterable to check, validated not null by this method</dd><dd><code>message</code> - the <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#format(java.lang.String, java.lang.Object...)" title="class or interface in java.lang"><code>String.format(String, Object...)</code></a> exception message if invalid, not null</dd><dd><code>values</code> - the optional values for the formatted exception message, null array not recommended</dd>
<dt><span class="strong">Returns:</span></dt><dd>the validated iterable (never <code>null</code> method for chaining)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the array is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if an element is <code>null</code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#noNullElements(T)"><code>noNullElements(Iterable)</code></a></dd></dl>
</li>
</ul>
<a name="noNullElements(java.lang.Iterable)">
<!--   -->
</a><a name="noNullElements(T)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>noNullElements</h4>
<pre>public static&nbsp;&lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;?&gt;&gt;&nbsp;T&nbsp;noNullElements(T&nbsp;iterable)</pre>
<div class="block"><p>Validate that the specified argument iterable is neither
 <code>null</code> nor contains any elements that are <code>null</code>;
 otherwise throwing an exception.

 <pre>Validate.noNullElements(myCollection);</pre>

 <p>If the iterable is <code>null</code>, then the message in the exception
 is &quot;The validated object is null&quot;.</p>

 <p>If the array has a <code>null</code> element, then the message in the
 exception is &quot;The validated iterable contains null element at index:
 &quot; followed by the index.</p></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the iterable type</dd><dt><span class="strong">Parameters:</span></dt><dd><code>iterable</code> - the iterable to check, validated not null by this method</dd>
<dt><span class="strong">Returns:</span></dt><dd>the validated iterable (never <code>null</code> method for chaining)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the array is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if an element is <code>null</code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#noNullElements(T, java.lang.String, java.lang.Object...)"><code>noNullElements(Iterable, String, Object...)</code></a></dd></dl>
</li>
</ul>
<a name="validIndex(java.lang.Object[],int,java.lang.String,java.lang.Object[])">
<!--   -->
</a><a name="validIndex(T[], int, java.lang.String, java.lang.Object...)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validIndex</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;T[]&nbsp;validIndex(T[]&nbsp;array,
                 int&nbsp;index,
                 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
                 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</pre>
<div class="block"><p>Validates that the index is within the bounds of the argument
 array; otherwise throwing an exception with the specified message.</p>

 <pre>Validate.validIndex(myArray, 2, "The array index is invalid: ");</pre>

 <p>If the array is <code>null</code>, then the message of the exception
 is &quot;The validated object is null&quot;.</p></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the array type</dd><dt><span class="strong">Parameters:</span></dt><dd><code>array</code> - the array to check, validated not null by this method</dd><dd><code>index</code> - the index to check</dd><dd><code>message</code> - the <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#format(java.lang.String, java.lang.Object...)" title="class or interface in java.lang"><code>String.format(String, Object...)</code></a> exception message if invalid, not null</dd><dd><code>values</code> - the optional values for the formatted exception message, null array not recommended</dd>
<dt><span class="strong">Returns:</span></dt><dd>the validated array (never <code>null</code> for method chaining)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the array is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the index is invalid</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#validIndex(T[], int)"><code>validIndex(Object[], int)</code></a></dd></dl>
</li>
</ul>
<a name="validIndex(java.lang.Object[],int)">
<!--   -->
</a><a name="validIndex(T[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validIndex</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;T[]&nbsp;validIndex(T[]&nbsp;array,
                 int&nbsp;index)</pre>
<div class="block"><p>Validates that the index is within the bounds of the argument
 array; otherwise throwing an exception.</p>

 <pre>Validate.validIndex(myArray, 2);</pre>

 <p>If the array is <code>null</code>, then the message of the exception
 is &quot;The validated object is null&quot;.</p>

 <p>If the index is invalid, then the message of the exception is
 &quot;The validated array index is invalid: &quot; followed by the
 index.</p></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the array type</dd><dt><span class="strong">Parameters:</span></dt><dd><code>array</code> - the array to check, validated not null by this method</dd><dd><code>index</code> - the index to check</dd>
<dt><span class="strong">Returns:</span></dt><dd>the validated array (never <code>null</code> for method chaining)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the array is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the index is invalid</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#validIndex(T[], int, java.lang.String, java.lang.Object...)"><code>validIndex(Object[], int, String, Object...)</code></a></dd></dl>
</li>
</ul>
<a name="validIndex(java.util.Collection,int,java.lang.String,java.lang.Object[])">
<!--   -->
</a><a name="validIndex(T, int, java.lang.String, java.lang.Object...)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validIndex</h4>
<pre>public static&nbsp;&lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;?&gt;&gt;&nbsp;T&nbsp;validIndex(T&nbsp;collection,
                                     int&nbsp;index,
                                     <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
                                     <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</pre>
<div class="block"><p>Validates that the index is within the bounds of the argument
 collection; otherwise throwing an exception with the specified message.</p>

 <pre>Validate.validIndex(myCollection, 2, "The collection index is invalid: ");</pre>

 <p>If the collection is <code>null</code>, then the message of the
 exception is &quot;The validated object is null&quot;.</p></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the collection type</dd><dt><span class="strong">Parameters:</span></dt><dd><code>collection</code> - the collection to check, validated not null by this method</dd><dd><code>index</code> - the index to check</dd><dd><code>message</code> - the <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#format(java.lang.String, java.lang.Object...)" title="class or interface in java.lang"><code>String.format(String, Object...)</code></a> exception message if invalid, not null</dd><dd><code>values</code> - the optional values for the formatted exception message, null array not recommended</dd>
<dt><span class="strong">Returns:</span></dt><dd>the validated collection (never <code>null</code> for chaining)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the collection is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the index is invalid</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#validIndex(T, int)"><code>validIndex(Collection, int)</code></a></dd></dl>
</li>
</ul>
<a name="validIndex(java.util.Collection,int)">
<!--   -->
</a><a name="validIndex(T, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validIndex</h4>
<pre>public static&nbsp;&lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;?&gt;&gt;&nbsp;T&nbsp;validIndex(T&nbsp;collection,
                                     int&nbsp;index)</pre>
<div class="block"><p>Validates that the index is within the bounds of the argument
 collection; otherwise throwing an exception.</p>

 <pre>Validate.validIndex(myCollection, 2);</pre>

 <p>If the index is invalid, then the message of the exception
 is &quot;The validated collection index is invalid: &quot;
 followed by the index.</p></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the collection type</dd><dt><span class="strong">Parameters:</span></dt><dd><code>collection</code> - the collection to check, validated not null by this method</dd><dd><code>index</code> - the index to check</dd>
<dt><span class="strong">Returns:</span></dt><dd>the validated collection (never <code>null</code> for method chaining)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the collection is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the index is invalid</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#validIndex(T, int, java.lang.String, java.lang.Object...)"><code>validIndex(Collection, int, String, Object...)</code></a></dd></dl>
</li>
</ul>
<a name="validIndex(java.lang.CharSequence,int,java.lang.String,java.lang.Object[])">
<!--   -->
</a><a name="validIndex(T, int, java.lang.String, java.lang.Object...)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validIndex</h4>
<pre>public static&nbsp;&lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&gt;&nbsp;T&nbsp;validIndex(T&nbsp;chars,
                                    int&nbsp;index,
                                    <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
                                    <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</pre>
<div class="block"><p>Validates that the index is within the bounds of the argument
 character sequence; otherwise throwing an exception with the
 specified message.</p>

 <pre>Validate.validIndex(myStr, 2, "The string index is invalid: ");</pre>

 <p>If the character sequence is <code>null</code>, then the message
 of the exception is &quot;The validated object is null&quot;.</p></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the character sequence type</dd><dt><span class="strong">Parameters:</span></dt><dd><code>chars</code> - the character sequence to check, validated not null by this method</dd><dd><code>index</code> - the index to check</dd><dd><code>message</code> - the <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#format(java.lang.String, java.lang.Object...)" title="class or interface in java.lang"><code>String.format(String, Object...)</code></a> exception message if invalid, not null</dd><dd><code>values</code> - the optional values for the formatted exception message, null array not recommended</dd>
<dt><span class="strong">Returns:</span></dt><dd>the validated character sequence (never <code>null</code> for method chaining)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the character sequence is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the index is invalid</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#validIndex(T, int)"><code>validIndex(CharSequence, int)</code></a></dd></dl>
</li>
</ul>
<a name="validIndex(java.lang.CharSequence,int)">
<!--   -->
</a><a name="validIndex(T, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validIndex</h4>
<pre>public static&nbsp;&lt;T extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&gt;&nbsp;T&nbsp;validIndex(T&nbsp;chars,
                                    int&nbsp;index)</pre>
<div class="block"><p>Validates that the index is within the bounds of the argument
 character sequence; otherwise throwing an exception.</p>

 <pre>Validate.validIndex(myStr, 2);</pre>

 <p>If the character sequence is <code>null</code>, then the message
 of the exception is &quot;The validated object is
 null&quot;.</p>

 <p>If the index is invalid, then the message of the exception
 is &quot;The validated character sequence index is invalid: &quot;
 followed by the index.</p></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the character sequence type</dd><dt><span class="strong">Parameters:</span></dt><dd><code>chars</code> - the character sequence to check, validated not null by this method</dd><dd><code>index</code> - the index to check</dd>
<dt><span class="strong">Returns:</span></dt><dd>the validated character sequence (never <code>null</code> for method chaining)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the character sequence is <code>null</code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the index is invalid</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#validIndex(T, int, java.lang.String, java.lang.Object...)"><code>validIndex(CharSequence, int, String, Object...)</code></a></dd></dl>
</li>
</ul>
<a name="validState(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validState</h4>
<pre>public static&nbsp;void&nbsp;validState(boolean&nbsp;expression)</pre>
<div class="block"><p>Validate that the stateful condition is <code>true</code>; otherwise
 throwing an exception. This method is useful when validating according
 to an arbitrary boolean expression, such as validating a
 primitive number or using your own custom validation expression.</p>

 <pre>
 Validate.validState(field &gt; 0);
 Validate.validState(this.isOk());</pre>

 <p>The message of the exception is &quot;The validated state is
 false&quot;.</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>expression</code> - the boolean expression to check</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></code> - if expression is <code>false</code></dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#validState(boolean, java.lang.String, java.lang.Object...)"><code>validState(boolean, String, Object...)</code></a></dd></dl>
</li>
</ul>
<a name="validState(boolean, java.lang.String, java.lang.Object...)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validState</h4>
<pre>public static&nbsp;void&nbsp;validState(boolean&nbsp;expression,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</pre>
<div class="block"><p>Validate that the stateful condition is <code>true</code>; otherwise
 throwing an exception with the specified message. This method is useful when
 validating according to an arbitrary boolean expression, such as validating a
 primitive number or using your own custom validation expression.</p>

 <pre>Validate.validState(this.isOk(), "The state is not OK: %s", myObject);</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>expression</code> - the boolean expression to check</dd><dd><code>message</code> - the <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#format(java.lang.String, java.lang.Object...)" title="class or interface in java.lang"><code>String.format(String, Object...)</code></a> exception message if invalid, not null</dd><dd><code>values</code> - the optional values for the formatted exception message, null array not recommended</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></code> - if expression is <code>false</code></dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#validState(boolean)"><code>validState(boolean)</code></a></dd></dl>
</li>
</ul>
<a name="matchesPattern(java.lang.CharSequence, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>matchesPattern</h4>
<pre>public static&nbsp;void&nbsp;matchesPattern(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&nbsp;input,
                  <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pattern)</pre>
<div class="block"><p>Validate that the specified argument character sequence matches the specified regular
 expression pattern; otherwise throwing an exception.</p>

 <pre>Validate.matchesPattern("hi", "[a-z]*");</pre>

 <p>The syntax of the pattern is the one used in the <a href="http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html?is-external=true" title="class or interface in java.util.regex"><code>Pattern</code></a> class.</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>input</code> - the character sequence to validate, not null</dd><dd><code>pattern</code> - the regular expression pattern, not null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the character sequence does not match the pattern</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#matchesPattern(java.lang.CharSequence, java.lang.String, java.lang.String, java.lang.Object...)"><code>matchesPattern(CharSequence, String, String, Object...)</code></a></dd></dl>
</li>
</ul>
<a name="matchesPattern(java.lang.CharSequence, java.lang.String, java.lang.String, java.lang.Object...)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>matchesPattern</h4>
<pre>public static&nbsp;void&nbsp;matchesPattern(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&nbsp;input,
                  <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pattern,
                  <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
                  <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</pre>
<div class="block"><p>Validate that the specified argument character sequence matches the specified regular
 expression pattern; otherwise throwing an exception with the specified message.</p>

 <pre>Validate.matchesPattern("hi", "[a-z]*", "%s does not match %s", "hi" "[a-z]*");</pre>

 <p>The syntax of the pattern is the one used in the <a href="http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html?is-external=true" title="class or interface in java.util.regex"><code>Pattern</code></a> class.</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>input</code> - the character sequence to validate, not null</dd><dd><code>pattern</code> - the regular expression pattern, not null</dd><dd><code>message</code> - the <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#format(java.lang.String, java.lang.Object...)" title="class or interface in java.lang"><code>String.format(String, Object...)</code></a> exception message if invalid, not null</dd><dd><code>values</code> - the optional values for the formatted exception message, null array not recommended</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the character sequence does not match the pattern</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#matchesPattern(java.lang.CharSequence, java.lang.String)"><code>matchesPattern(CharSequence, String)</code></a></dd></dl>
</li>
</ul>
<a name="inclusiveBetween(java.lang.Object,java.lang.Object,java.lang.Comparable)">
<!--   -->
</a><a name="inclusiveBetween(T, T, java.lang.Comparable)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>inclusiveBetween</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;void&nbsp;inclusiveBetween(T&nbsp;start,
                        T&nbsp;end,
                        <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;&nbsp;value)</pre>
<div class="block"><p>Validate that the specified argument object fall between the two
 inclusive values specified; otherwise, throws an exception.</p>

 <pre>Validate.inclusiveBetween(0, 2, 1);</pre></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the type of the argument object</dd><dt><span class="strong">Parameters:</span></dt><dd><code>start</code> - the inclusive start value, not null</dd><dd><code>end</code> - the inclusive end value, not null</dd><dd><code>value</code> - the object to validate, not null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the value falls outside the boundaries</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#inclusiveBetween(T, T, java.lang.Comparable, java.lang.String, java.lang.Object...)"><code>inclusiveBetween(Object, Object, Comparable, String, Object...)</code></a></dd></dl>
</li>
</ul>
<a name="inclusiveBetween(java.lang.Object,java.lang.Object,java.lang.Comparable,java.lang.String,java.lang.Object[])">
<!--   -->
</a><a name="inclusiveBetween(T, T, java.lang.Comparable, java.lang.String, java.lang.Object...)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>inclusiveBetween</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;void&nbsp;inclusiveBetween(T&nbsp;start,
                        T&nbsp;end,
                        <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;&nbsp;value,
                        <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
                        <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</pre>
<div class="block"><p>Validate that the specified argument object fall between the two
 inclusive values specified; otherwise, throws an exception with the
 specified message.</p>

 <pre>Validate.inclusiveBetween(0, 2, 1, "Not in boundaries");</pre></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the type of the argument object</dd><dt><span class="strong">Parameters:</span></dt><dd><code>start</code> - the inclusive start value, not null</dd><dd><code>end</code> - the inclusive end value, not null</dd><dd><code>value</code> - the object to validate, not null</dd><dd><code>message</code> - the <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#format(java.lang.String, java.lang.Object...)" title="class or interface in java.lang"><code>String.format(String, Object...)</code></a> exception message if invalid, not null</dd><dd><code>values</code> - the optional values for the formatted exception message, null array not recommended</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the value falls outside the boundaries</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#inclusiveBetween(T, T, java.lang.Comparable)"><code>inclusiveBetween(Object, Object, Comparable)</code></a></dd></dl>
</li>
</ul>
<a name="inclusiveBetween(long, long, long)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>inclusiveBetween</h4>
<pre>public static&nbsp;void&nbsp;inclusiveBetween(long&nbsp;start,
                    long&nbsp;end,
                    long&nbsp;value)</pre>
<div class="block">Validate that the specified primitive value falls between the two
 inclusive values specified; otherwise, throws an exception.

 <pre>Validate.inclusiveBetween(0, 2, 1);</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>start</code> - the inclusive start value</dd><dd><code>end</code> - the inclusive end value</dd><dd><code>value</code> - the value to validate</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the value falls outside the boundaries (inclusive)</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.3</dd></dl>
</li>
</ul>
<a name="inclusiveBetween(long, long, long, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>inclusiveBetween</h4>
<pre>public static&nbsp;void&nbsp;inclusiveBetween(long&nbsp;start,
                    long&nbsp;end,
                    long&nbsp;value,
                    <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message)</pre>
<div class="block">Validate that the specified primitive value falls between the two
 inclusive values specified; otherwise, throws an exception with the
 specified message.

 <pre>Validate.inclusiveBetween(0, 2, 1, "Not in range");</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>start</code> - the inclusive start value</dd><dd><code>end</code> - the inclusive end value</dd><dd><code>value</code> - the value to validate</dd><dd><code>message</code> - the exception message if invalid, not null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the value falls outside the boundaries</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.3</dd></dl>
</li>
</ul>
<a name="inclusiveBetween(double, double, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>inclusiveBetween</h4>
<pre>public static&nbsp;void&nbsp;inclusiveBetween(double&nbsp;start,
                    double&nbsp;end,
                    double&nbsp;value)</pre>
<div class="block">Validate that the specified primitive value falls between the two
 inclusive values specified; otherwise, throws an exception.

 <pre>Validate.inclusiveBetween(0.1, 2.1, 1.1);</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>start</code> - the inclusive start value</dd><dd><code>end</code> - the inclusive end value</dd><dd><code>value</code> - the value to validate</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the value falls outside the boundaries (inclusive)</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.3</dd></dl>
</li>
</ul>
<a name="inclusiveBetween(double, double, double, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>inclusiveBetween</h4>
<pre>public static&nbsp;void&nbsp;inclusiveBetween(double&nbsp;start,
                    double&nbsp;end,
                    double&nbsp;value,
                    <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message)</pre>
<div class="block">Validate that the specified primitive value falls between the two
 inclusive values specified; otherwise, throws an exception with the
 specified message.

 <pre>Validate.inclusiveBetween(0.1, 2.1, 1.1, "Not in range");</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>start</code> - the inclusive start value</dd><dd><code>end</code> - the inclusive end value</dd><dd><code>value</code> - the value to validate</dd><dd><code>message</code> - the exception message if invalid, not null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the value falls outside the boundaries</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.3</dd></dl>
</li>
</ul>
<a name="exclusiveBetween(java.lang.Object,java.lang.Object,java.lang.Comparable)">
<!--   -->
</a><a name="exclusiveBetween(T, T, java.lang.Comparable)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>exclusiveBetween</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;void&nbsp;exclusiveBetween(T&nbsp;start,
                        T&nbsp;end,
                        <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;&nbsp;value)</pre>
<div class="block"><p>Validate that the specified argument object fall between the two
 exclusive values specified; otherwise, throws an exception.</p>

 <pre>Validate.exclusiveBetween(0, 2, 1);</pre></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the type of the argument object</dd><dt><span class="strong">Parameters:</span></dt><dd><code>start</code> - the exclusive start value, not null</dd><dd><code>end</code> - the exclusive end value, not null</dd><dd><code>value</code> - the object to validate, not null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the value falls outside the boundaries</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#exclusiveBetween(T, T, java.lang.Comparable, java.lang.String, java.lang.Object...)"><code>exclusiveBetween(Object, Object, Comparable, String, Object...)</code></a></dd></dl>
</li>
</ul>
<a name="exclusiveBetween(java.lang.Object,java.lang.Object,java.lang.Comparable,java.lang.String,java.lang.Object[])">
<!--   -->
</a><a name="exclusiveBetween(T, T, java.lang.Comparable, java.lang.String, java.lang.Object...)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>exclusiveBetween</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;void&nbsp;exclusiveBetween(T&nbsp;start,
                        T&nbsp;end,
                        <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;&nbsp;value,
                        <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
                        <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</pre>
<div class="block"><p>Validate that the specified argument object fall between the two
 exclusive values specified; otherwise, throws an exception with the
 specified message.</p>

 <pre>Validate.exclusiveBetween(0, 2, 1, "Not in boundaries");</pre></div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the type of the argument object</dd><dt><span class="strong">Parameters:</span></dt><dd><code>start</code> - the exclusive start value, not null</dd><dd><code>end</code> - the exclusive end value, not null</dd><dd><code>value</code> - the object to validate, not null</dd><dd><code>message</code> - the <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#format(java.lang.String, java.lang.Object...)" title="class or interface in java.lang"><code>String.format(String, Object...)</code></a> exception message if invalid, not null</dd><dd><code>values</code> - the optional values for the formatted exception message, null array not recommended</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the value falls outside the boundaries</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#exclusiveBetween(T, T, java.lang.Comparable)"><code>exclusiveBetween(Object, Object, Comparable)</code></a></dd></dl>
</li>
</ul>
<a name="exclusiveBetween(long, long, long)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>exclusiveBetween</h4>
<pre>public static&nbsp;void&nbsp;exclusiveBetween(long&nbsp;start,
                    long&nbsp;end,
                    long&nbsp;value)</pre>
<div class="block">Validate that the specified primitive value falls between the two
 exclusive values specified; otherwise, throws an exception.

 <pre>Validate.exclusiveBetween(0, 2, 1);</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>start</code> - the exclusive start value</dd><dd><code>end</code> - the exclusive end value</dd><dd><code>value</code> - the value to validate</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the value falls out of the boundaries</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.3</dd></dl>
</li>
</ul>
<a name="exclusiveBetween(long, long, long, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>exclusiveBetween</h4>
<pre>public static&nbsp;void&nbsp;exclusiveBetween(long&nbsp;start,
                    long&nbsp;end,
                    long&nbsp;value,
                    <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message)</pre>
<div class="block">Validate that the specified primitive value falls between the two
 exclusive values specified; otherwise, throws an exception with the
 specified message.

 <pre>Validate.exclusiveBetween(0, 2, 1, "Not in range");</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>start</code> - the exclusive start value</dd><dd><code>end</code> - the exclusive end value</dd><dd><code>value</code> - the value to validate</dd><dd><code>message</code> - the exception message if invalid, not null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the value falls outside the boundaries</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.3</dd></dl>
</li>
</ul>
<a name="exclusiveBetween(double, double, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>exclusiveBetween</h4>
<pre>public static&nbsp;void&nbsp;exclusiveBetween(double&nbsp;start,
                    double&nbsp;end,
                    double&nbsp;value)</pre>
<div class="block">Validate that the specified primitive value falls between the two
 exclusive values specified; otherwise, throws an exception.

 <pre>Validate.exclusiveBetween(0.1, 2.1, 1.1);</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>start</code> - the exclusive start value</dd><dd><code>end</code> - the exclusive end value</dd><dd><code>value</code> - the value to validate</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the value falls out of the boundaries</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.3</dd></dl>
</li>
</ul>
<a name="exclusiveBetween(double, double, double, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>exclusiveBetween</h4>
<pre>public static&nbsp;void&nbsp;exclusiveBetween(double&nbsp;start,
                    double&nbsp;end,
                    double&nbsp;value,
                    <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message)</pre>
<div class="block">Validate that the specified primitive value falls between the two
 exclusive values specified; otherwise, throws an exception with the
 specified message.

 <pre>Validate.exclusiveBetween(0.1, 2.1, 1.1, "Not in range");</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>start</code> - the exclusive start value</dd><dd><code>end</code> - the exclusive end value</dd><dd><code>value</code> - the value to validate</dd><dd><code>message</code> - the exception message if invalid, not null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the value falls outside the boundaries</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.3</dd></dl>
</li>
</ul>
<a name="isInstanceOf(java.lang.Class, java.lang.Object)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isInstanceOf</h4>
<pre>public static&nbsp;void&nbsp;isInstanceOf(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;type,
                <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;obj)</pre>
<div class="block">Validates that the argument is an instance of the specified class, if not throws an exception.
  
 <p>This method is useful when validating according to an arbitrary class</p>

 <pre>Validate.isInstanceOf(OkClass.class, object);</pre>

 <p>The message of the exception is &quot;Expected type: {type}, actual: {obj_type}&quot;</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - the class the object must be validated against, not null</dd><dd><code>obj</code> - the object to check, null throws an exception</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if argument is not of specified class</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#isInstanceOf(java.lang.Class, java.lang.Object, java.lang.String, java.lang.Object...)"><code>isInstanceOf(Class, Object, String, Object...)</code></a></dd></dl>
</li>
</ul>
<a name="isInstanceOf(java.lang.Class, java.lang.Object, java.lang.String, java.lang.Object...)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isInstanceOf</h4>
<pre>public static&nbsp;void&nbsp;isInstanceOf(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;type,
                <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;obj,
                <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
                <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</pre>
<div class="block"><p>Validate that the argument is an instance of the specified class; otherwise
 throwing an exception with the specified message. This method is useful when
 validating according to an arbitrary class</p>

 <pre>Validate.isInstanceOf(OkClass.classs, object, "Wrong class, object is of class %s",
   object.getClass().getName());</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - the class the object must be validated against, not null</dd><dd><code>obj</code> - the object to check, null throws an exception</dd><dd><code>message</code> - the <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#format(java.lang.String, java.lang.Object...)" title="class or interface in java.lang"><code>String.format(String, Object...)</code></a> exception message if invalid, not null</dd><dd><code>values</code> - the optional values for the formatted exception message, null array not recommended</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if argument is not of specified class</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#isInstanceOf(java.lang.Class, java.lang.Object)"><code>isInstanceOf(Class, Object)</code></a></dd></dl>
</li>
</ul>
<a name="isAssignableFrom(java.lang.Class, java.lang.Class)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isAssignableFrom</h4>
<pre>public static&nbsp;void&nbsp;isAssignableFrom(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;superType,
                    <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;type)</pre>
<div class="block">Validates that the argument can be converted to the specified class, if not, throws an exception.
 
 <p>This method is useful when validating that there will be no casting errors.</p>

 <pre>Validate.isAssignableFrom(SuperClass.class, object.getClass());</pre>

 <p>The message format of the exception is &quot;Cannot assign {type} to {superType}&quot;</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>superType</code> - the class the class must be validated against, not null</dd><dd><code>type</code> - the class to check, not null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if type argument is not assignable to the specified superType</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#isAssignableFrom(java.lang.Class, java.lang.Class, java.lang.String, java.lang.Object...)"><code>isAssignableFrom(Class, Class, String, Object...)</code></a></dd></dl>
</li>
</ul>
<a name="isAssignableFrom(java.lang.Class, java.lang.Class, java.lang.String, java.lang.Object...)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>isAssignableFrom</h4>
<pre>public static&nbsp;void&nbsp;isAssignableFrom(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;superType,
                    <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;type,
                    <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message,
                    <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>...&nbsp;values)</pre>
<div class="block">Validates that the argument can be converted to the specified class, if not throws an exception.
  
 <p>This method is useful when validating if there will be no casting errors.</p>

 <pre>Validate.isAssignableFrom(SuperClass.class, object.getClass());</pre>

 <p>The message of the exception is &quot;The validated object can not be converted to the&quot;
 followed by the name of the class and &quot;class&quot;</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>superType</code> - the class the class must be validated against, not null</dd><dd><code>type</code> - the class to check, not null</dd><dd><code>message</code> - the <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#format(java.lang.String, java.lang.Object...)" title="class or interface in java.lang"><code>String.format(String, Object...)</code></a> exception message if invalid, not null</dd><dd><code>values</code> - the optional values for the formatted exception message, null array not recommended</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if argument can not be converted to the specified class</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/commons/lang3/Validate.html#isAssignableFrom(java.lang.Class, java.lang.Class)"><code>isAssignableFrom(Class, Class)</code></a></dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Validate.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/commons/lang3/SystemUtils.html" title="class in org.apache.commons.lang3"><span class="strong">Prev Class</span></a></li>
<li>Next Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/commons/lang3/Validate.html" target="_top">Frames</a></li>
<li><a href="Validate.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2001&#x2013;2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>
